package com.weavernorth.retailExperienceAward;

import com.weavernorth.retailExperienceAward.service.SendDataToZddptjService;
import com.weavernorth.util.Logger4jUtil;
import org.apache.log4j.Logger;
import weaver.interfaces.schedule.BaseCronJob;

/**
 * @Author: bruseewang
 * @Package: com.weavernorth.retailExperienceAward
 * @date: 2020/7/15 10:29
 * @description: 将月度店铺业改装修(闭店)信息单中的数据插入到店铺统计表中
 */
public class SendDataToZddpfstjTimmer extends BaseCronJob {
    public String cycle;
    public String getcycle() {
        return cycle;
    }
    public void setcycle(String cycle) {
        this.cycle = cycle;
    }
    @Override
    public void execute() {
        Logger log =Logger4jUtil.getLoggerByName("/Timmer/SendDataToZddpfstjTimmer/");
        log.info("----插入数据到店铺统计表接口执行开始----：");
        SendDataToZddptjService service=new SendDataToZddptjService();
        service.setLog(log);
        service.setcycle(Integer.parseInt(cycle));
        service.execute();
        log.info("----插入数据到店铺统计表接口执行结束----：");
    }
}
